home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / puppyred_ball_war.swf / scripts / DefineSprite_151 / frame_8 / DoAction.as
Text File  |  2007-09-26  |  396b  |  15 lines

  1. if(_root.getBytesLoaded() < _root.getBytesTotal())
  2. {
  3.    stop();
  4.    loadingbar.onEnterFrame = function()
  5.    {
  6.       trace(this._x);
  7.       this._x = _root.getBytesLoaded() * 100 / _root.getBytesTotal() * 1.47 + -143.7;
  8.       if(_root.getBytesLoaded() >= _root.getBytesTotal())
  9.       {
  10.          this._parent.gotoAndPlay("loadingOk");
  11.          this.onEnterFrame = null;
  12.       }
  13.    };
  14. }
  15.